﻿using PhysicalExamination5.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PhysicalExamination5.Interface
{
    public interface ILogin
    {
        /// <summary>
        /// 初始化
        /// </summary>
        /// <param name="stripaddress"></param>
        /// <returns></returns>
        public string Initialize(string stripaddress);
        /// <summary>
        /// 根据用户ID返回用户名和院区权限
        /// </summary>
        /// <param name="strUserId"></param>
        /// <returns></returns>
        public string SelUserDate(string strUserId);
        /// <summary>
        /// 登录方法
        /// </summary>
        /// <param name="strFanHuiZhi"></param>
        /// <param name="strJueSeId"></param>
        /// <param name="strUserId"></param>
        /// <param name="strRefresh_Token"></param>
        /// <param name="login"></param>
        /// <param name="stripaddress"></param>
        /// <param name="strDengLuXiTong"></param>
        /// <returns></returns>
        public int Login(out string strFanHuiZhi,out string strJueSeId, out string strUserId, out string strRefresh_Token,out string strYuanQuQianZhui, LoginClass login,string stripaddress, string strDengLuXiTong);
        /// <summary>
        /// 颁发refresh_token
        /// </summary>
        /// <param name="strFanHuiZhi"></param>
        /// <param name="strDengLuXiTong"></param>
        /// <param name="strJueSeId"></param>
        /// <param name="strUserName"></param>
        /// <param name="strYuanQu"></param>
        /// <param name="strRefresh_Token"></param>
        /// <param name="strUserId"></param>
        /// <param name="strRefSalt"></param>
        /// <param name="stripaddress"></param>
        /// <returns></returns>
        public int RefreshToken(out string strFanHuiZhi, out string strDengLuXiTong, out string strJueSeId, out string strUserName,out string strYuanQuQianZhui,out string strYuanQu, out string strRefresh_Token, string strUserId, string strRefSalt,string stripaddress);
    }
}
